/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Diegueno</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15083 (C-0-T14914-S14915-S14916-S15083-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianDiegueno()
 * @model extendedMetaData="name='RaceAmericanIndianDiegueno'"
 * @generated
 */
public enum RaceAmericanIndianDiegueno implements Enumerator {
	/**
	 * The '<em><b>12229</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12229_VALUE
	 * @generated
	 * @ordered
	 */
	_12229(0, "_12229", "1222-9"),

	/**
	 * The '<em><b>12237</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12237_VALUE
	 * @generated
	 * @ordered
	 */
	_12237(1, "_12237", "1223-7"),

	/**
	 * The '<em><b>12245</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12245_VALUE
	 * @generated
	 * @ordered
	 */
	_12245(2, "_12245", "1224-5"),

	/**
	 * The '<em><b>12252</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12252_VALUE
	 * @generated
	 * @ordered
	 */
	_12252(3, "_12252", "1225-2"),

	/**
	 * The '<em><b>12260</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12260_VALUE
	 * @generated
	 * @ordered
	 */
	_12260(4, "_12260", "1226-0"),

	/**
	 * The '<em><b>12278</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12278_VALUE
	 * @generated
	 * @ordered
	 */
	_12278(5, "_12278", "1227-8"),

	/**
	 * The '<em><b>12286</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12286_VALUE
	 * @generated
	 * @ordered
	 */
	_12286(6, "_12286", "1228-6"),

	/**
	 * The '<em><b>12294</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12294_VALUE
	 * @generated
	 * @ordered
	 */
	_12294(7, "_12294", "1229-4"),

	/**
	 * The '<em><b>12302</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12302_VALUE
	 * @generated
	 * @ordered
	 */
	_12302(8, "_12302", "1230-2"),

	/**
	 * The '<em><b>12310</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12310_VALUE
	 * @generated
	 * @ordered
	 */
	_12310(9, "_12310", "1231-0");

	/**
	 * The '<em><b>12229</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12229</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12229
	 * @model literal="1222-9"
	 * @generated
	 * @ordered
	 */
	public static final int _12229_VALUE = 0;

	/**
	 * The '<em><b>12237</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12237</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12237
	 * @model literal="1223-7"
	 * @generated
	 * @ordered
	 */
	public static final int _12237_VALUE = 1;

	/**
	 * The '<em><b>12245</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12245</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12245
	 * @model literal="1224-5"
	 * @generated
	 * @ordered
	 */
	public static final int _12245_VALUE = 2;

	/**
	 * The '<em><b>12252</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12252</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12252
	 * @model literal="1225-2"
	 * @generated
	 * @ordered
	 */
	public static final int _12252_VALUE = 3;

	/**
	 * The '<em><b>12260</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12260</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12260
	 * @model literal="1226-0"
	 * @generated
	 * @ordered
	 */
	public static final int _12260_VALUE = 4;

	/**
	 * The '<em><b>12278</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12278</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12278
	 * @model literal="1227-8"
	 * @generated
	 * @ordered
	 */
	public static final int _12278_VALUE = 5;

	/**
	 * The '<em><b>12286</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12286</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12286
	 * @model literal="1228-6"
	 * @generated
	 * @ordered
	 */
	public static final int _12286_VALUE = 6;

	/**
	 * The '<em><b>12294</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12294</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12294
	 * @model literal="1229-4"
	 * @generated
	 * @ordered
	 */
	public static final int _12294_VALUE = 7;

	/**
	 * The '<em><b>12302</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12302</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12302
	 * @model literal="1230-2"
	 * @generated
	 * @ordered
	 */
	public static final int _12302_VALUE = 8;

	/**
	 * The '<em><b>12310</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12310</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12310
	 * @model literal="1231-0"
	 * @generated
	 * @ordered
	 */
	public static final int _12310_VALUE = 9;

	/**
	 * An array of all the '<em><b>Race American Indian Diegueno</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianDiegueno[] VALUES_ARRAY =
		new RaceAmericanIndianDiegueno[] {
			_12229,
			_12237,
			_12245,
			_12252,
			_12260,
			_12278,
			_12286,
			_12294,
			_12302,
			_12310,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Diegueno</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianDiegueno> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Diegueno</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianDiegueno get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianDiegueno result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Diegueno</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianDiegueno getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianDiegueno result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Diegueno</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianDiegueno get(int value) {
		switch (value) {
			case _12229_VALUE: return _12229;
			case _12237_VALUE: return _12237;
			case _12245_VALUE: return _12245;
			case _12252_VALUE: return _12252;
			case _12260_VALUE: return _12260;
			case _12278_VALUE: return _12278;
			case _12286_VALUE: return _12286;
			case _12294_VALUE: return _12294;
			case _12302_VALUE: return _12302;
			case _12310_VALUE: return _12310;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianDiegueno(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianDiegueno
